package com.polarbear.dto;

import java.io.Serializable;
import java.util.Vector;

import com.polarbear.dto.JobScheduleDTO;

public class JobSchedules implements Serializable {
	private static final long serialVersionUID = 941435769726716921L;
	private int year;
	private int month;
	private int day;

	private Vector<JobScheduleDTO> list = new Vector<JobScheduleDTO>(3, 3);

	public void addJobSchedule(JobScheduleDTO schedule){
		list.add(schedule);
	}
	
	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}
	
	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public Vector<JobScheduleDTO> getList() {
		return list;
	}

	public void setList(Vector<JobScheduleDTO> list) {
		this.list = list;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("JobSchedules (year:" + this.year)
		.append(",month:" + this.month)
		.append(",day:" + this.day + ")");
		return sb.toString();
	}
}
